##############################################################################################
#  Copyright (C) 2007 [F.G. Hattingh]																			
#																															#
#	 This program is free software; you can redistribute it and/or modify							
#	it under the terms of the GNU General Public License as published by								
#	the Free Software Foundation; either version 3 of the License, or									
#	(at your option) any later version.																				
#																															#
#	This program is distributed in the hope that it will be useful,											
#	but WITHOUT ANY WARRANTY; without even the implied warranty of										
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the										
#	GNU General Public License for more details.																
#																															#
#	You should have received a copy of the GNU General Public License										
#	along with this program; if not, write to the Free Software											
#	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA							
#																															#
#	Contact me at: hattinghfg@tut.ac.za																	
#																															#
# This lib will help you write applications that work with the MXIT protocoll						
# Roster.pm holds various information about each contact and the user								
# It relies on:																										
# Time::localtime;																																																							#
##############################################################################################
use strict;
use Time::localtime;
use Mixip::Contact;

package Roster;

sub new 
{
my $class = shift;
my $self  = {};
$self->{STIME} = localtime; #The exact time the roster was initiated [Used to get time program was running] 
$self->{CONT_LIST}=(); #Holds all the Contact.pm objects
bless ($self, $class);
return $self;
}

# ** Adds a new contact to the roster. Expects a Contact.pm object.
sub add_contact
{
my $self = @_[0];
my $contact = @_[1];
push(@{$self->{CONT_LIST}},$contact);
}


1;
